Linux时间同步,ntpd,ntpdate

您所在的位置:网站首页 ntp 同步命令 Linux时间同步,ntpd,ntpdate

Linux时间同步,ntpd,ntpdate

#Linux时间同步,ntpd,ntpdate| 来源: 网络整理| 查看: 265

linux

时间同步,

ntpd

ntpdate 

Windwos

中,系统时间的设置很简单,界面操作,通俗易懂。而且设置后,重启,关机都没关系。系统

时间会自动保存在

Bios

的时钟里面,启动计算机的时候,系统会自动在

Bios

里面取硬件时间,以保证时

间的不间断。

 

 

    

但在

Linux

下,默认情况下,系统时间和硬件时间,并不会自动同步。在

Linux

运行过程中,系统时间

和硬件时间以异步的方式运行,互不干扰。硬件时间的运行,是靠

Bios

电池来维持,而系统时间,是用

CPU tick

来维持的。

 

    

在系统开机的时候,会自动从

Bios

中取得硬件时间,设置为系统时间。

 

  

.Linux

系统时间的设置

 

    

Linux

中设置系统时间,可以用

date

命令:

 

//

查看时间

 

[root@localhost ~]# date 

2008

 

12

 

12

 

星期五

 

14:44:12 CST 

//

修改时间

 

[root@localhost ~]# date --set "1/1/09 00:01" 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3